package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.Student;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author LinQiSen
 */
@Data
@Accessors(chain = true)
public class StudentAddDto extends BaseDto<Student> {


    @ApiParam(value = "sno", required = true)
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "学生学号")
    private String sno;

    @ApiModelProperty(value = "学生姓名")
    private String sname;

    @ApiModelProperty(value = "学生性别")
    private String ssex;

    @ApiModelProperty(value = "联系电话")
    private String sphone;

    @ApiModelProperty(value = "地址")
    private String saddress;

    @ApiModelProperty(value = "出生日期")
    private Date sbirthday;

    @ApiParam(value = "classno", required = true)
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "班级号")
    private String classno;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiParam(value = "deptno", required = true)
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "院系号")
    private String deptno;

}
